<div class="yuList" style="display: block;">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>拍卖单号</th>
                <th>车型</th>
                <th>所在地</th>
                <th>车牌号</th>
                <th>车主姓名</th>
                <th>车主电话</th>
                <th>评估师</th>
                <?php if($status < 2):?>
                <th>成交确认时间</th>
                <?php endif;?>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>    
        <volist name="list" id="vo" key="k">
            <tr>
                <td>{$vo.order_no}</td>
                <td><a href="/Car/report/car_id/{$vo.car_id}" target="_blank">{$vo.car_model}</a></td>
                <td>{$vo.location_area}</td>
                <td>{$vo.plate_number}</td>
                <td>{$vo.seller_name}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.checker_name}</td>
                <?php if($status < 2):?>
                <td>{$vo.owner_confirm_time}</td>
                <?php endif;?>
                <td>
                    
                    <if condition="$vo.status lt 2">
                    <?php if ($vo['is_lock'] == 1): ?>
                        <a href="javascript:" class="ash-grey">复检</a>
                    <?php else: ?>
                        <a href="/Recheck/recheck_info?oid={$vo.order_id}" target="_blank">复检</a>
                    <?php endif ?>
                    <else/>
                    <a href="/Recheck/recheck_info?oid={$vo.order_id}" target="_blank">查看</a>
                    </if>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="pageFaye"><div class="pager">{$page}</div><div class="clear"></div></div>
</div>
<!--违约-->
<div class="chenggong1">
    <span class="paidan">您确定要置为违约吗?</span>
    <div class="shenhei-btn">
        <input type="hidden" name="order_id"  value="" />
        <input type="button" value="确定" class="determine" />
        <input type="button" value="取消" class="cancel" />
    </div>
</div>
<div class="yunBei"></div>
<script>
    $("#start_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });

    $("#end_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });
    function violate(order_id){
        $('.chenggong1').css('display', 'block');
        $('.yunBei').css({'display':'block',"zIndex":999});
        $('input[name=order_id]').val(order_id);
    }
    $(".determine").on('click', function () {
        var order_id = $('input[name=order_id]').val();
        var param = {
            'order_id':order_id
        };
        var btn_obj = $(this);
        btn_obj.val("提交中...").attr("disabled",'disabled');
        $.post('/Recheck/violate', param, function (data) {
            if (data.code == '200') {
                btn_alert(data.msg);
                $('.chenggong1').fadeOut();
                btn_obj.val("确定").removeAttr("disabled style");
                setTimeout(function () {
                        window.location.reload();
                    }, 500);
            } else {
                shibai_alert(data.msg)
                btn_obj.val("确定").removeAttr("disabled style");
                $('.chenggong1').fadeOut();
            }
            $('.yunBei').css({'display':'none',"zIndex":999});
        }, 'json');
    });
    $(".cancel").on('click', function () {
        $('.chenggong1').fadeOut();
        $('.yunBei').css({'display':'none',"zIndex":999});
    });
</script>